package com.parse.antlr.tree.parsers;

import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import com.commons.ParsingResult;
import com.parse.antlr.tree.parsers.service.ANTLRParsingService;

public class ParsingServiceTest {
	
	public static void main(String srgs[]) throws Throwable{
		ANTLRParsingService parsingService = new ANTLRParsingService();
		Map<String, ParsingResult> parseDirectoryResult = parsingService.parseDirectory("/Users/irimnoho/Documents/workspace/lang-parser/data/antlr");
		Set<Entry<String, ParsingResult>> entrySet = parseDirectoryResult.entrySet();
		for(Entry<String, ParsingResult> resultPerFile : entrySet){
			System.out.println("\nResult for file name:"+resultPerFile.getKey());
			System.out.println(resultPerFile.getValue()+"\n");
			System.out.println("#################################################");
		}
	}

}
